﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Centrica.TaskManager.Task;

namespace Centrica.TaskManager.Tests.Task
{
    public class TasksViewModelMock : TasksViewModel
    {

        public event EventHandler AddTaskFired;
        public event EventHandler DeleteTaskFired;
        public event EventHandler EditTaskFired;

        protected override void OnAddTask(Centrica.TaskManager.Data.Task task)
        {
            if (AddTaskFired != null)
            {

                AddTaskFired(null, null);
            
            }

        }

        protected override void OnDeleteTask(Centrica.TaskManager.Data.Task task)
        {
            if (DeleteTaskFired != null)
            {

                DeleteTaskFired(null, null);

            }
        }

        protected override void OnEditTask(Centrica.TaskManager.Data.Task task)
        {
            if (EditTaskFired != null)
            {

                EditTaskFired(null, null);

            }
        }

    }
}
